<div class="eject_con">
    <form action="{:url('Sellerreturn/aigin',['return_id'=>$return.refund_id])}" method="post" id="post_form">
        <dl>
            <dt>订单编号{$Think.lang.ds_colon}</dt>
            <dd> {$return.order_sn} </dd>
        </dl>
        <dl>
            <dt>商品名称{$Think.lang.ds_colon}</dt>
            <dd> {$return.goods_name} </dd>
        </dl>
        <dl>
            <dt><i class="required">*</i>快递单号{$Think.lang.ds_colon}</dt>
            <dd>
                <input id="invoice_no" type="text" name="invoice_no">
                <span class="error"></span>
                <p id="warning" class="hint"></p>
            </dd>
        </dl>
        <div class="bottom">
            <input type="submit" class="submit" id="confirm_yes" value="{$Think.lang.ds_ok}" />
        </div>
    </form>
</div>
<script type="text/javascript">

    $(function () {
        $('#post_form').validate({
            errorLabelContainer: $('#warning'),
            invalidHandler: function (form, validator) {
                $('#warning').show();
            },
            submitHandler: function (form) {
                ds_ajaxpost('post_form');
            },
            rules: {
                return_type: {
                    required: true
                },
                invoice_no: {
                    required: true
                }
            },
            messages: {
                return_type: {
                    required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_select_receiving_situation}'
                },
                invoice_no: {
                    required: '请填写快递单号'
                }
            }
        });
    });
</script>